/* 
 * File:   contextMenu.h
 * Author: cow
 *
 * Created on September 20, 2011, 9:12 AM
 */

#ifndef CONTEXTMENU_H
#define	CONTEXTMENU_H

//Includes---------------------------------------
#include "Screen.h"
#include "../cantrips/handlers.h"
#include "../../stalemate.h"
#include <string>
#include <cairo/cairo.h>
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
using namespace std;
//Includes=======================================

//Defines----------------------------------------
//Defines========================================

//Prototypes-------------------------------------
class contextMenu;
//Prototypes=====================================

//Definitions------------------------------------
class contextMenu : public screen{
public:
	//constructors----------------
	contextMenu(int menuTag, string *str, int strs);
	//access----------------------
	virtual void draw();
	virtual int getTag();
	//manipulators----------------
	void setHighlighted(int i);
	void setHighLighted(int x, int y);
	void setHighlightColor(float r, float g, float b);
	//activation methods----------
	virtual void onActivate(SDL_Surface* s);
	virtual void onDeactivate();
private:
	//menu info-------------------
	int tag;
	//string entries--------------
	string *items;
	int numStrs;
	//menu choice information-----
	float hlr, hlg, hlb;
	int highlighted;
};
//Definitions====================================

#endif	/* CONTEXTMENU_H */

